//
//  IfengMenuItemCell.h
//  IfengNews
//
//  Created by Ryan on 13-7-12.
//
//

#import <UIKit/UIKit.h>

// 可控制压多压少的问题，用于判断移动哪一个
#define INSET_X (20)
#define INSET_Y (10)
#define TRIGGER_MIN_DRIFT (0.5)

@protocol IfengMnbuItemCellDelegate;

@interface IfengMenuItemCell : UIView


@property (nonatomic,unsafe_unretained)BOOL isTheLastOne;
@property (nonatomic,assign) BOOL isSelected;
@property (nonatomic,assign) int index;
@property (nonatomic,weak) id<IfengMnbuItemCellDelegate> delegate;
@property (nonatomic,assign) CGRect crashTestRect;
@property (nonatomic,assign)BOOL isblank;
@property (nonatomic,unsafe_unretained)BOOL isLockArea;

- (id)initWithBoderColor:(UIColor *)color;
- (void)reInitCompont;
- (void)setText:(NSString *)itemTitle;
- (void)addTapTarget:(id)target select:(SEL)selector;
- (void)setStaticYES;
- (void)setLockArea;

@end

@protocol IfengMnbuItemCellDelegate <NSObject>

@optional
// 拖拽方法
- (void)dragCellItem:(IfengMenuItemCell *)cellItem;
- (void)dragCellItemEnd:(IfengMenuItemCell *)cellItem;


@end
